package yxy.game.pm2.module.worldboss;

import yxy.game.pm2.bean.area.AreaBean;
import yxy.game.pm2.bean.module.AreaModule;
import yxy.game.pm2.bean.module.rank.PlayerRankModule;

public class RankWorldBoss extends PlayerRankModule {

	public RankWorldBoss(AreaBean areaBean) {
		super(areaBean);
	}

	@Override
	public String rankName() {
		return PlayerRankModule.getAllRankNames().get(13);
	}

	@Override
	protected long valuePlastic(long value) {
		return value * 100;
	}

	@Override
	protected long valueRestore(long score) {
		return score / 100;
	}

	static public RankWorldBoss getRank(String playerCode) {
		AreaBean areaBean = AreaModule.area(playerCode);
		return new RankWorldBoss(areaBean);
	}
}
